home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / theLifeArk.swf / scripts / DefineSprite_890 / frame_1 / DoAction.as
Encoding:
Text File  |  2011-09-19  |  687 b   |  36 lines

  1. function clearLight()
  2. {
  3.    trace("clear light");
  4.    bgLOW._alpha = 0;
  5.    bgMEDIUM._alpha = 0;
  6.    bgHIGH._alpha = 0;
  7.    bgBEST._alpha = 0;
  8. }
  9. function setLight(p_name)
  10. {
  11.    trace("setLight function " + p_name);
  12.    clearLight();
  13.    this["bg" + p_name]._alpha = 100;
  14. }
  15. var path = this._parent;
  16. QLOW.onPress = function()
  17. {
  18.    path.setQlt("LOW");
  19.    this._parent._visible = false;
  20. };
  21. QMEDIUM.onPress = function()
  22. {
  23.    path.setQlt("MEDIUM");
  24.    this._parent._visible = false;
  25. };
  26. QHIGH.onPress = function()
  27. {
  28.    path.setQlt("HIGH");
  29.    this._parent._visible = false;
  30. };
  31. QBEST.onPress = function()
  32. {
  33.    path.setQlt("BEST");
  34.    this._parent._visible = false;
  35. };
  36.